﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using AppFramework.TicketTask;
using PayPalCheckoutSdk.Orders;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.TicketTask
{
    /// <summary>
    /// 工单任务表
    /// </summary>
    [Table("tb_TicketTaskinfo")]
    public class TicketTaskinfo : AuditedEntity<int>, ISoftDelete
    {
        [Display(Name = "任务编号")]
        /// <summary>
        /// 任务编号
        /// </summary>
        public string Missionnumber { get; set; }
        [Display(Name = "任务名称")]
        /// <summary>
        /// 任务名称
        /// </summary>
        public string Taskname { get; set; }
        [Display(Name = "站点名称")]
        /// <summary>
        /// 站点名称
        /// </summary>
        public string Sitename { get; set; }
        [Display(Name = "站点编号")]
        /// <summary>
        /// 站点编号
        /// </summary>
        public string Stationnumber { get; set; }
        [Display(Name = "工艺流程")]
        /// <summary>
        /// 工艺流程
        /// </summary>
        public string Technologicalprocess { get; set; }
        [Display(Name = "工序名称")]
        /// <summary>
        /// 工序名称
        /// </summary>
        public string Processname { get; set; }
        [Display(Name = "工序编号")]
        /// <summary>
        /// 工序编号
        /// </summary>
        public string Procedurenumber { get; set; }
        [Display(Name = "计划数量")]
        /// <summary>
        /// 计划数量
        /// </summary>
        public int Plannedquantity { get; set; }
        [Display(Name = "实际数量")]
        /// <summary>
        /// 实际数量
        /// </summary>
        public int Realquantity { get; set; }
        [Display(Name = "开工时间")]
        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime Runplantdate { get; set; }
        [Display(Name = "完工时间")]
        /// <summary>
        /// 完工时间
        /// </summary>
        public DateTime Completedate { get; set; }
        [Display(Name = "计划生产时长")]
        /// <summary>
        /// 计划生产时长
        /// </summary>
        public string Plannedproductiontime { get; set; } = "1小时";
        [Display(Name = "实际生产时长")]
        /// <summary>
        /// 实际生产时长
        /// </summary>
        public string Actualproductiontime { get; set; } = "1小时30分钟";
        [Display(Name = "状态")]
        /// <summary>
        /// 状态
        /// </summary>
        public TicketTaskEnum States { get; set; } = TicketTaskEnum.NotWorkOrder;
        [Display(Name = "工单编号")]
        /// <summary>
        /// 工单编号
        /// </summary>
        public string Workordernumber { get; set; }
        [Display(Name =("工艺编号"))]
        /// <summary>
        /// 工艺编号
        /// </summary>
        public string ProcessNumber { get; set; }
        public bool IsDeleted { get ; set; }
    }
}
